<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{GerenciarETE.page1}" id="page1">
            <ui:html binding="#{GerenciarETE.html1}" id="html1">
                <ui:head binding="#{GerenciarETE.head1}" id="head1">
                    <ui:link binding="#{GerenciarETE.link1}" id="link1" url="/resources/stylesheet.css"/>
                    <script>
                      function initAllRows() {
                       var table = document.getElementById("form1:table1");
                       table.initAllRows();
                       
                       var table1 = document.getElementById("form1:table2");
                       table1.initAllRows();
                       
                       var table2 = document.getElementById("form1:table3");
                       table2.initAllRows();

                      }
                    </script>
                </ui:head>
                <ui:body binding="#{GerenciarETE.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{GerenciarETE.form1}" id="form1">
                        <div style="height: 98px; left: 0px; top: 0px; position: absolute; width: 762px">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="height: 466px; left: 0px; top: 104px; position: absolute; width: 206px">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="height: 36px; left: 0px; top: 560px; position: absolute; width: 758px">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                        <ui:tabSet binding="#{GerenciarETE.tabSet1}" id="tabSet1" selected="tab1" style="height: 454px; left: 208px; top: 104px; position: absolute; width: 554px">
                            <ui:tab binding="#{GerenciarETE.tab1}" id="tab1" text="Gerenciar">
                                <ui:panelLayout binding="#{GerenciarETE.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 415px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:label binding="#{GerenciarETE.lblNomeProjeto}" id="lblNomeProjeto"
                                        style="font-size: 18px; left: 4px; top: 4px; position: absolute" text="#{SessionBean1.projetoETESelecionado.nome}"/>
                                    <ui:label binding="#{GerenciarETE.label1}" for="txtColaboradorETE" id="label1"
                                        style="left: 40px; top: 40px; position: absolute" text="Colaborador:"/>
                                    <ui:label binding="#{GerenciarETE.label2}" id="label2" style="left: 72px; top: 64px; position: absolute" text="Papel:"/>
                                    <ui:textField binding="#{GerenciarETE.txtColaboradorETE}" disabled="true" id="txtColaboradorETE"
                                        style="height: 20px; left: 120px; top: 36px; position: absolute; width: 287px" text="#{SessionBean1.colaboradorSelecionadoETE.nome}"/>
                                    <ui:textField binding="#{GerenciarETE.txtPapelETE}" disabled="true" id="txtPapelETE"
                                        style="height: 20px; left: 120px; top: 64px; position: absolute; width: 287px" text="#{SessionBean1.papelSelecionadoETE.descricao}"/>
                                    <ui:button action="#{GerenciarETE.btnConsultarColaborador_action}" binding="#{GerenciarETE.btnConsultarColaborador}"
                                        id="btnConsultarColaborador" style="left: 419px; top: 36px; position: absolute" text="..."/>
                                    <ui:button action="#{GerenciarETE.btnConsultarPapel_action}" binding="#{GerenciarETE.btnConsultarPapel}"
                                        id="btnConsultarPapel" style="left: 419px; top: 64px; position: absolute" text="..."/>
                                    <ui:button action="#{GerenciarETE.btnInserir_action}" binding="#{GerenciarETE.btnInserir}" id="btnInserir"
                                        style="left: 119px; top: 92px; position: absolute" text="Inserir"/>
                                    <ui:button action="#{GerenciarETE.btnEditar_action}" binding="#{GerenciarETE.btnEditar}" id="btnEditar"
                                        style="left: 195px; top: 92px; position: absolute" text="Editar"/>
                                    <ui:button action="#{GerenciarETE.btnSalvar_action}" binding="#{GerenciarETE.btnSalvar}" id="btnSalvar"
                                        style="left: 267px; top: 92px; position: absolute" text="Salvar"/>
                                    <ui:button action="#{GerenciarETE.btnDesativar_action}" binding="#{GerenciarETE.btnDesativar}" id="btnDesativar"
                                        style="left: 339px; top: 92px; position: absolute" text="Desativar"/>
                                    <ui:table augmentTitle="false" binding="#{GerenciarETE.table1}" id="table1" paginateButton="true" paginationControls="true"
                                        style="height: 12px; left: 8px; top: 116px; position: absolute; width: 538px" title="Componente ETE" width="538">
                                        <ui:tableRowGroup binding="#{GerenciarETE.tableRowGroup1}" id="tableRowGroup1" rows="4"
                                            selected="#{GerenciarETE.selectedState}" sourceData="#{SessionBean1.listaDataSourceETE}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn1}" id="tableColumn1" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{GerenciarETE.radioButton1.id}">
                                                <ui:radioButton binding="#{GerenciarETE.radioButton1}" id="radioButton1" label=""
                                                    name="#{GerenciarETE.radioButton1.id}" selected="#{GerenciarETE.selected}" selectedValue="#{GerenciarETE.selectedValue}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn2}" headerText="Nome" id="tableColumn2" sort="colaborador.nome">
                                                <ui:staticText binding="#{GerenciarETE.staticText1}" id="staticText1" text="#{currentRow.value['colaborador']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn3}" headerText="Papel" id="tableColumn3" sort="papel.descricao">
                                                <ui:staticText binding="#{GerenciarETE.staticText2}" id="staticText2" text="#{currentRow.value['papel']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn9}" headerText="Data" id="tableColumn9">
                                                <ui:staticText binding="#{GerenciarETE.staticText3}" id="staticText3" text="#{currentRow.value['data']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                    <ui:alert binding="#{GerenciarETE.alerta}" id="alerta" style="left: 4px; top: 360px; position: absolute; width: 541px"/>
                                </ui:panelLayout>
                            </ui:tab>
                            <ui:tab binding="#{GerenciarETE.tab2}" id="tab2" text="Pesquisar Colaborador">
                                <ui:panelLayout binding="#{GerenciarETE.layoutPanel2}" id="layoutPanel2" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 415px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:label binding="#{GerenciarETE.label3}" id="label3" style="left: 16px; top: 12px; position: absolute" text="Nome"/>
                                    <ui:textField binding="#{GerenciarETE.txtCriterioColaborador}" id="txtCriterioColaborador" style="left: 16px; top: 32px; position: absolute; width: 355px"/>
                                    <ui:button action="#{GerenciarETE.btnProcurarColaborador_action}" binding="#{GerenciarETE.btnProcurarColaborador}"
                                        id="btnProcurarColaborador" primary="true" style="left: 383px; top: 32px; position: absolute" text="Procurar"/>
                                    <ui:button action="#{GerenciarETE.btnSelecionarColaborador_action}" binding="#{GerenciarETE.btnSelecionarColaborador}"
                                        id="btnSelecionarColaborador" style="left: 455px; top: 32px; position: absolute" text="Selecionar"/>
                                    <ui:alert binding="#{GerenciarETE.alerta1}" id="alerta1" style="left: 4px; top: 360px; position: absolute; width: 541px"/>
                                    <ui:table augmentTitle="false" binding="#{GerenciarETE.table2}" id="table2" paginateButton="true" paginationControls="true"
                                        style="height: 4px; left: 16px; top: 56px; position: absolute" title="Colaboradores" width="518">
                                        <ui:tableRowGroup binding="#{GerenciarETE.tableRowGroup2}" id="tableRowGroup2" rows="5"
                                            selected="#{GerenciarETE.selectedStateCol}" sourceData="#{SessionBean1.listaDataSourceColaboradorETE}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn4}" id="tableColumn4" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{GerenciarETE.radioButton2.id}">
                                                <ui:radioButton binding="#{GerenciarETE.radioButton2}" id="radioButton2" label=""
                                                    name="#{GerenciarETE.radioButton2.id}" selected="#{GerenciarETE.selectedCol}" selectedValue="#{GerenciarETE.selectedValueCol}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn5}" headerText="Nome" id="tableColumn5">
                                                <ui:staticText binding="#{GerenciarETE.staticText4}" id="staticText4" text="#{currentRow.value['nome']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn6}" headerText="Usuário" id="tableColumn6">
                                                <ui:staticText binding="#{GerenciarETE.staticText5}" id="staticText5" text="#{currentRow.value['usuario']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn11}" headerText="Autorização" id="tableColumn11">
                                                <ui:staticText binding="#{GerenciarETE.staticText6}" id="staticText6" text="#{currentRow.value['autorizacao']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                </ui:panelLayout>
                            </ui:tab>
                            <ui:tab binding="#{GerenciarETE.tab3}" id="tab3" text="Pesquisar Papel">
                                <ui:panelLayout binding="#{GerenciarETE.layoutPanel3}" id="layoutPanel3" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 415px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:label binding="#{GerenciarETE.label4}" id="label4" style="left: 12px; top: 8px; position: absolute" text="Descriçao"/>
                                    <ui:textField binding="#{GerenciarETE.txtCriterioPapel}" id="txtCriterioPapel" style="left: 12px; top: 28px; position: absolute; width: 343px"/>
                                    <ui:button action="#{GerenciarETE.btnProcurarPapel_action}" binding="#{GerenciarETE.btnProcurarPapel}" id="btnProcurarPapel"
                                        primary="true" style="left: 375px; top: 28px; position: absolute" text="Procurar"/>
                                    <ui:button action="#{GerenciarETE.btnSelecionarPapel_action}" binding="#{GerenciarETE.btnSelecionarPapel}"
                                        id="btnSelecionarPapel" style="left: 459px; top: 28px; position: absolute" text="Selecionar"/>
                                    <ui:alert binding="#{GerenciarETE.alerta2}" id="alerta2" style="left: 8px; top: 360px; position: absolute"/>
                                    <ui:table augmentTitle="false" binding="#{GerenciarETE.table3}" id="table3" paginateButton="true" paginationControls="true"
                                        style="height: 4px; left: 12px; top: 56px; position: absolute" title="Papeis" width="526">
                                        <ui:tableRowGroup binding="#{GerenciarETE.tableRowGroup3}" id="tableRowGroup3" rows="5"
                                            selected="#{GerenciarETE.selectedStatePapel}" sourceData="#{SessionBean1.listaPapelDataSourceETE}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn7}" id="tableColumn7" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{GerenciarETE.radioButton3.id}">
                                                <ui:radioButton binding="#{GerenciarETE.radioButton3}" id="radioButton3" label=""
                                                    name="#{GerenciarETE.radioButton3.id}" selected="#{GerenciarETE.selectedPapel}" selectedValue="#{GerenciarETE.selectedValuePapel}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciarETE.tableColumn8}" headerText="Papel" id="tableColumn8">
                                                <ui:staticText binding="#{GerenciarETE.staticText7}" id="staticText7" text="#{currentRow.value['descricao']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                </ui:panelLayout>
                            </ui:tab>
                        </ui:tabSet>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
